<?php

if(!defined('IN_refrigeratory')) {
	exit('Access Denied');
}

$operation = $_REQUEST["operation"];
$operations = array("info_shipment");

if (!in_array($operation, $operations)){
	echo '{"success":false, "info":"request params invalid"}';
	exit;
}

if ($operation == "info_shipment"){
	$sql = "SELECT id_shipment,c.name,char_number,leave_time,arrive_time 
			FROM t_shipment s 
			LEFT JOIN t_transport t ON s.id_transport = t.id_transport
			LEFT JOIN t_client c ON s.id_client = c.id_client";
	echo get_json_from_sql($sql);
}

?>